package org.springblade.modules.repair.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum RescueNoticeConfirmTypeEnum {

	NOT_CONFIRM(-1, "未确认"),

	CONFIRM_ACCURATE(1, "准确无误"),

	MISREPORT(2, "误报"),

	CANNOT_CONFIRM(3, "无法确定");

	final int confirmType;

	final String confirmTypeDesc;

	/**
	 * 根据confirmType获取对应的confirmTypeDesc
	 */
	public static String getConfirmTypeDescByConfirmType(int confirmType) {
		for (RescueNoticeConfirmTypeEnum e : RescueNoticeConfirmTypeEnum.values()) {
			if (e.getConfirmType() == confirmType) {
				return e.getConfirmTypeDesc();
			}
		}
		return null;
	}



}
